package cn.itcast.order.Client;

import cn.itcast.order.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient{
    @Override
    public User queryById(Long id) {
        User user = new User();
        user.setUsername("在消费端被降级");
        return user;
    }
}
